bin=$1

pid=`ps -ef | grep $1 | grep -v 'grep\|stop' | awk '{print $2}'`

if [ ! -n "$pid" ];then
  echo "already stop smartEditor"
else
  echo "kill $pid"
  kill $pid
fi

